<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width">
        <link rel="shortcut icon" href="../favicon.ico">
        <script src="js/jquery.min.js"></script>
        <title>jsPlumb Community Edition Documentation</title>
        <link href="//fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">




        <link rel="stylesheet" href="css/docs.css">
        <script src="js/docs.js"></script>
    </head>

    <body class="jtk-bootstrap-wide">

        <div class="jtk-header">
    <a class="jtk-logo" href="/"><img src="logo-medium-jsplumb.png"></a>

</div>


        <div class="padding-top" style="margin-top:20px;display:flex;">

                <div id="docs-nav" tabindex="0">
                    <ul>
<li>Imports and Setup

<ul>
<li><a href="home.html#browser">Browser Compatibility</a></li>
<li><a href="home.html#setup">Setup</a></li>
<li><a href="home.html#doctype">Doctype</a></li>
<li><a href="home.html#imports">Required Imports</a></li>
<li><a href="home.html#initializing">Initializing jsPlumb</a></li>
<li><a href="home.html#multiple">Multiple jsPlumb Instances</a></li>
<li><a href="home.html#zindex">Z-Index Considerations</a></li>
<li><a href="home.html#container">Where does jsPlumb add elements?</a></li>
<li><a href="home.html#performance">Performance</a></li>
<li><a href="zooming.html">Zooming</a></li>
<li><a href="defaults.html">Configuring Defaults</a></li>
</ul></li>
<li>Concepts

<ul>
<li><a href="basic-concepts.html">Introduction</a></li>
<li><a href="anchors.html">Anchors</a></li>
<li><a href="connectors.html">Connectors</a></li>
<li><a href="endpoints.html">Endpoints</a></li>
<li><a href="overlays.html">Overlays</a></li>
<li><a href="groups.html">Groups</a></li>
<li><a href="lists.html">Scrollable Lists</a></li>
</ul></li>
<li>Nodes

<ul>
<li><a href="dragging.html">Element Dragging</a></li>
</ul></li>
<li>Connections

<ul>
<li><a href="connections.html">Overview</a></li>
<li><a href="connections.html#programmatic">Programmatic Connections</a></li>
<li><a href="connections.html#common">Reusing Common Settings</a></li>
<li><a href="connections.html#detaching">Detaching Programmatic Connections</a></li>
<li><a href="connections.html#draganddrop">Drag and Drop Connections</a></li>
<li><a href="connections.html#sourcesandtargets">Elements as sources &amp; targets</a></li>
<li><a href="connections.html#maketarget">Element Targets</a></li>
<li><a href="connections.html#makesource">Element Sources</a></li>
<li><a href="connections.html#sourcefilter">Specifying drag source area</a></li>
<li><a href="removing.html">Removing Connections/Endpoints</a></li>
<li><a href="parameters.html">Connection &amp; Endpoint Parameters</a></li>
</ul></li>
<li>Connection &amp; Endpoint Types

<ul>
<li><a href="types.html">Introduction</a></li>
<li><a href="types.html#connection-type">Connection Types</a></li>
<li><a href="types.html#endpoint-type">Endpoint Types</a></li>
</ul></li>
<li>Events

<ul>
<li><a href="events.html">Overview</a></li>
<li><a href="interceptors.html">Interceptors</a></li>
</ul></li>
<li>Appearance

<ul>
<li><a href="paint-styles.html">Styling via Paint Styles</a></li>
<li><a href="styling-via-css.html">Styling via CSS</a></li>
</ul></li>
<li>Querying jsPlumb

<ul>
<li><a href="querying.html#select">Selecting a list of Connections</a></li>
<li><a href="querying.html#selectEndpoints">Selecting a list of Endpoints</a></li>
</ul></li>
<li>Miscellaneous

<ul>
<li><a href="animation.html">Animation</a></li>
<li><a href="utilities.html">Utility Functions</a></li>
</ul></li>
<li>Bundling jsPlumb

<ul>
<li><a href="webpack.html">Webpack</a></li>
</ul></li>
<li>Examples

<ul>
<li><a href="connect-examples.html">jsPlumb.connect</a></li>
<li><a href="draggable-connections-examples.html">Draggable Connections</a></li>
<li><a href="miscellaneous-examples.html">Miscellaneous</a></li>
</ul></li>
<li>Development

<ul>
<li><a href="changelog.html">Changelog</a></li>
<li><a href="development.html">Which files are which?</a></li>
<li><a href="Build.html">Building jsPlumb</a></li>
<li><a href="development-documentation.html">Documentation while developing</a></li>
</ul></li>
</ul>


                </div>

            <div id="docs">
                
                <div class="markdown-body">
                    <h3>Draggable Connections Examples</h3>

<h4>A note on <code>dragOptions</code> and <code>dropOptions</code></h4>

<h6>dragOptions</h6>

<p>There are two methods in jsPlumb that allow you to configure an element from which Connections can be 
dragged - <strong>addEndpoint</strong> and <strong>makeSource</strong>. Each of these methods supports a <code>dragOptions</code> object is one of the 
parameters in its options.  The allowed values in this object are those supported by <a href="https://github.com/jsplumb/katavorio">Katavorio</a>.
<code>dragOptions</code> is passed directly through to Katavorio.</p>

<h6>dropOptions</h6>

<p>There are two methods that allow you to configure an element as a Connection drop target - <strong>addEndpoint</strong> and <strong>makeTarget</strong>. Where the source methods support <code>dragOptions</code>, these methods (and yes, one of these methods is the same as a method you&#39;d use to configure a Connection source), these methods support a <code>dropOptions</code> parameter. Again, check the appropriate documentation for details on supported values in this object.</p>

<h4>Examples</h4>

<p>This is a list of examples of how to use jsPlumb to create Connections using drag and drop.  The basic procedure is:</p>

<ol>
<li>Create Endpoints and register them on elements in your UI, or create a source Endpoint and then make some element a drop target</li>
<li>Drag and Drop<br></li>
</ol>

<p>There are plenty of options you can set when doing this...it will be easier to show you some examples:          </p>

<ul>
<li>Define an Endpoint with default appearance, that is both a source and target of new Connections:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">endpointOptions</span> <span class="o">=</span> <span class="p">{</span> <span class="nx">isSource</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span> <span class="nx">isTarget</span><span class="o">:</span><span class="kc">true</span> <span class="p">};</span> 
</code></pre></div>
<ul>
<li>Register that Endpoint on <code>window3</code>, specifying that it should be located in the top center of the element:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">window3Endpoint</span> <span class="o">=</span> <span class="nx">jsPlumb</span><span class="p">.</span><span class="nx">addEndpoint</span><span class="p">(</span><span class="s1">&#39;window3&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">anchor</span><span class="o">:</span><span class="s2">&quot;Top&quot;</span> <span class="p">},</span> <span class="nx">endpointOptions</span> <span class="p">);</span>  
</code></pre></div>
<p>Notice here the usage of the three-argument <code>addEndpoint</code>  - we can reuse <code>endpointOptions</code> with a different Anchor for another element.  This is a useful practice to get into. </p>

<ul>
<li>Register that Endpoint on window4, specifying that it should be located in the bottom center of the element:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">window4Endpoint</span> <span class="o">=</span> <span class="nx">jsPlumb</span><span class="p">.</span><span class="nx">addEndpoint</span><span class="p">(</span><span class="s1">&#39;window4&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">anchor</span><span class="o">:</span><span class="s2">&quot;BottomCenter&quot;</span> <span class="p">},</span> <span class="nx">endpointOptions</span> <span class="p">);</span>  
</code></pre></div>
<p>Now we have two Endpoints, both of which support drag and drop of new Connections.  We can use these to make a programmatic Connection, too, though:</p>

<ul>
<li>Connect window3 to window4 with a 25px wide yellow Bezier that has a &#39;curviness&#39; of 175:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="nx">jsPlumb</span><span class="p">.</span><span class="nx">connect</span><span class="p">({</span> 
  <span class="nx">source</span><span class="o">:</span><span class="nx">window3Endpoint</span><span class="p">,</span>
  <span class="nx">target</span><span class="o">:</span><span class="nx">window4Endpoint</span><span class="p">,</span>
  <span class="nx">connector</span><span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;Bezier&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">curviness</span><span class="o">:</span><span class="mi">175</span> <span class="p">}</span> <span class="p">],</span>
  <span class="nx">paintStyle</span><span class="o">:</span><span class="p">{</span> <span class="nx">strokeWidth</span><span class="o">:</span><span class="mi">25</span><span class="p">,</span> <span class="nx">stroke</span><span class="o">:</span><span class="s1">&#39;yellow&#39;</span> <span class="p">}</span>
<span class="p">});</span>  
</code></pre></div>
<ul>
<li>Define an Endpoint that creates Connections that are 20px wide straight lines, that is both a source and target of new Connections, and that has a <code>scope</code> of <code>blueline</code>. Also, this Endpoint mandates that once it is full, Connections can no longer be dragged from it (even if <code>reattach</code> is specified on a Connection):</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">endpointOptions</span> <span class="o">=</span> <span class="p">{</span> 
      <span class="nx">isSource</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span> 
      <span class="nx">isTarget</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
      <span class="nx">connector</span> <span class="o">:</span> <span class="s2">&quot;Straight&quot;</span><span class="p">,</span>
      <span class="nx">connectorStyle</span><span class="o">:</span> <span class="p">{</span> <span class="nx">strokeWidth</span><span class="o">:</span><span class="mi">20</span><span class="p">,</span> <span class="nx">stroke</span><span class="o">:</span><span class="s1">&#39;blue&#39;</span> <span class="p">},</span>
      <span class="nx">scope</span><span class="o">:</span><span class="s2">&quot;blueline&quot;</span><span class="p">,</span>
      <span class="nx">dragAllowedWhenFull</span><span class="o">:</span><span class="kc">false</span>  
<span class="p">};</span> 
</code></pre></div>
<ul>
<li>Define an Endpoint that will be anchored to <code>TopCenter</code>.  It creates Connections that are 20px wide straight lines, that are both a source and target of new Connections, and that have a <code>scope</code> of <code>blueline</code>. Also, this Endpoint mandates that once it is full, Connections can no longer be dragged from it (even if <code>reattach</code> is specified on a Connection):</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">endpointOptions</span> <span class="o">=</span> <span class="p">{</span>
      <span class="nx">anchor</span><span class="o">:</span><span class="s2">&quot;Top&quot;</span><span class="p">,</span> 
      <span class="nx">isSource</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span> 
      <span class="nx">isTarget</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
      <span class="nx">connector</span> <span class="o">:</span> <span class="s2">&quot;Straight&quot;</span><span class="p">,</span>
      <span class="nx">connectorStyle</span><span class="o">:</span> <span class="p">{</span> <span class="nx">strokeWidth</span><span class="o">:</span><span class="mi">20</span><span class="p">,</span> <span class="nx">stroke</span><span class="o">:</span><span class="s1">&#39;blue&#39;</span> <span class="p">},</span>
      <span class="nx">scope</span><span class="o">:</span><span class="s2">&quot;blueline&quot;</span><span class="p">,</span>
      <span class="nx">dragAllowedWhenFull</span><span class="o">:</span><span class="kc">false</span>  
<span class="p">};</span> 
</code></pre></div>
<ul>
<li>Define an Endpoint that will create a dynamic anchor which can be positioned at <code>Top</code> or <code>Bottom</code>.  It creates Connections that are 20px wide straight lines, it is both a source and target of new Connections, and it has a &#39;scope&#39; of &#39;blueline&#39;. Also, this Endpoint mandates that once it is full, Connections can no longer be dragged from it (even if <code>reattach</code> is specified on a Connection):</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">endpointOptions</span> <span class="o">=</span> <span class="p">{</span>
    <span class="nx">anchor</span><span class="o">:</span><span class="p">[</span> <span class="s2">&quot;TopCenter&quot;</span><span class="p">,</span> <span class="s2">&quot;BottomCenter&quot;</span> <span class="p">],</span> 
      <span class="nx">isSource</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span> 
      <span class="nx">isTarget</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
      <span class="nx">connector</span> <span class="o">:</span> <span class="s2">&quot;Straight&quot;</span><span class="p">,</span>
      <span class="nx">connectorStyle</span><span class="o">:</span> <span class="p">{</span> <span class="nx">strokeWidth</span><span class="o">:</span><span class="mi">20</span><span class="p">,</span> <span class="nx">stroke</span><span class="o">:</span><span class="s1">&#39;blue&#39;</span> <span class="p">},</span>
      <span class="nx">scope</span><span class="o">:</span><span class="s2">&quot;blueline&quot;</span><span class="p">,</span>
      <span class="nx">dragAllowedWhenFull</span><span class="o">:</span><span class="kc">false</span>  
<span class="p">};</span> 
</code></pre></div>
<ul>
<li>Exactly the same as before, but shows how you can use <code>anchors</code> instead of <code>anchor</code>, if that makes you feel happier:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">endpointOptions</span> <span class="o">=</span> <span class="p">{</span>
  <span class="nx">anchors</span><span class="o">:</span><span class="p">[</span> <span class="s2">&quot;TopCenter&quot;</span><span class="p">,</span> <span class="s2">&quot;BottomCenter&quot;</span> <span class="p">],</span> 
  <span class="nx">isSource</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span> 
  <span class="nx">isTarget</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
  <span class="nx">connector</span> <span class="o">:</span> <span class="s2">&quot;Straight&quot;</span><span class="p">,</span>
  <span class="nx">connectorStyle</span><span class="o">:</span> <span class="p">{</span> <span class="nx">strokeWidth</span><span class="o">:</span><span class="mi">20</span><span class="p">,</span> <span class="nx">stroke</span><span class="o">:</span><span class="s1">&#39;blue&#39;</span> <span class="p">},</span>
  <span class="nx">scope</span><span class="o">:</span><span class="s2">&quot;blueline&quot;</span><span class="p">,</span>
  <span class="nx">dragAllowedWhenFull</span><span class="o">:</span><span class="kc">false</span>  
<span class="p">};</span> 
</code></pre></div>
<ul>
<li>Define an Endpoint that is a 30px blue dot, creates Connections that are 20px wide straight lines, is both a source and target of new Connections, has a <code>scope</code> of <code>blueline</code>, and has an event handler that pops up an alert on drop:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">endpointOptions</span> <span class="o">=</span> <span class="p">{</span> 
  <span class="nx">isSource</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span> 
  <span class="nx">isTarget</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
  <span class="nx">endpoint</span><span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;Dot&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">radius</span><span class="o">:</span><span class="mi">30</span> <span class="p">}</span> <span class="p">],</span>
  <span class="nx">style</span><span class="o">:</span><span class="p">{</span><span class="nx">fill</span><span class="o">:</span><span class="s1">&#39;blue&#39;</span><span class="p">},</span>
  <span class="nx">connector</span> <span class="o">:</span> <span class="s2">&quot;Straight&quot;</span><span class="p">,</span>
  <span class="nx">connectorStyle</span><span class="o">:</span> <span class="p">{</span> <span class="nx">strokeWidth</span><span class="o">:</span><span class="mi">20</span><span class="p">,</span> <span class="nx">stroke</span><span class="o">:</span><span class="s1">&#39;blue&#39;</span> <span class="p">},</span>
  <span class="nx">scope</span><span class="o">:</span><span class="s2">&quot;blueline&quot;</span><span class="p">,</span>
  <span class="nx">dropOptions</span><span class="o">:</span><span class="p">{</span> 
    <span class="nx">drop</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">,</span> <span class="nx">ui</span><span class="p">)</span> <span class="p">{</span> 
      <span class="nx">alert</span><span class="p">(</span><span class="s1">&#39;drop!&#39;</span><span class="p">);</span> 
    <span class="p">}</span> 
  <span class="p">}</span>  
<span class="p">};</span> 
</code></pre></div>
<ul>
<li>Same example again, but <code>maxConnections</code> being set to -1 means that the Endpoint has no maximum limit of Connections:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">endpointOptions</span> <span class="o">=</span> <span class="p">{</span> 
    <span class="nx">isSource</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span> 
    <span class="nx">isTarget</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span>
    <span class="nx">endpoint</span><span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;Dot&quot;</span><span class="p">,</span> <span class="p">{</span><span class="nx">radius</span><span class="o">:</span><span class="mi">30</span><span class="p">}</span> <span class="p">],</span>
    <span class="nx">style</span><span class="o">:</span><span class="p">{</span> <span class="nx">fill</span><span class="o">:</span><span class="s1">&#39;blue&#39;</span> <span class="p">},</span>
    <span class="nx">maxConnections</span><span class="o">:-</span><span class="mi">1</span><span class="p">,</span>
    <span class="nx">connector</span> <span class="o">:</span> <span class="s2">&quot;Straight&quot;</span><span class="p">,</span>
    <span class="nx">connectorStyle</span><span class="o">:</span> <span class="p">{</span> <span class="nx">strokeWidth</span><span class="o">:</span><span class="mi">20</span><span class="p">,</span> <span class="nx">stroke</span><span class="o">:</span><span class="s1">&#39;blue&#39;</span> <span class="p">},</span>
    <span class="nx">scope</span><span class="o">:</span><span class="s2">&quot;blueline&quot;</span><span class="p">,</span>
    <span class="nx">dropOptions</span><span class="o">:</span><span class="p">{</span> 
          <span class="nx">drop</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">,</span> <span class="nx">ui</span><span class="p">)</span> <span class="p">{</span> 
            <span class="nx">alert</span><span class="p">(</span><span class="s1">&#39;drop!&#39;</span><span class="p">);</span> 
          <span class="p">}</span> 
      <span class="p">}</span>  
<span class="p">};</span> 
</code></pre></div>
<ul>
<li>Assign a UUID to the Endpoint options created above, and add as Endpoints to &quot;window1&quot; and &quot;window2&quot;:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="nx">jsPlumb</span><span class="p">.</span><span class="nx">addEndpoint</span><span class="p">(</span><span class="s2">&quot;window1&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">uuid</span><span class="o">:</span><span class="s2">&quot;abcdefg&quot;</span> <span class="p">},</span> <span class="nx">endpointOptions</span> <span class="p">);</span>
<span class="nx">jsPlumb</span><span class="p">.</span><span class="nx">addEndpoint</span><span class="p">(</span><span class="s2">&quot;window2&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">uuid</span><span class="o">:</span><span class="s2">&quot;hijklmn&quot;</span> <span class="p">},</span> <span class="nx">endpointOptions</span> <span class="p">);</span>
</code></pre></div>
<ul>
<li>Connect the two Endpoints we just registered on &quot;window1&quot; and &quot;window2&quot;:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="nx">jsPlumb</span><span class="p">.</span><span class="nx">connect</span><span class="p">({</span><span class="nx">uuids</span><span class="o">:</span><span class="p">[</span><span class="s2">&quot;abcdefg&quot;</span><span class="p">,</span> <span class="s2">&quot;hijklmn&quot;</span><span class="p">]});</span>
</code></pre></div>
<ul>
<li>Create a source Endpoint, register it on some element, then make some other element a Connection target:</li>
</ul>
<div class="highlight"><pre><code class="language-javascript" data-lang="javascript"><span class="kd">var</span> <span class="nx">sourceEndpoint</span> <span class="o">=</span> <span class="p">{</span> <span class="nx">isSource</span><span class="o">:</span><span class="kc">true</span><span class="p">,</span> <span class="nx">endpoint</span><span class="o">:</span><span class="p">[</span> <span class="s2">&quot;Dot&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">radius</span><span class="o">:</span><span class="mi">50</span> <span class="p">}</span> <span class="p">]</span> <span class="p">};</span>
<span class="kd">var</span> <span class="nx">targetEndpoint</span> <span class="o">=</span> <span class="p">{</span> <span class="nx">endpoint</span><span class="o">:</span><span class="p">[</span> <span class="s2">&quot;Rectangle&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">width</span><span class="o">:</span><span class="mi">10</span><span class="p">,</span> <span class="nx">height</span><span class="o">:</span><span class="mi">10</span> <span class="p">}</span> <span class="p">]</span> <span class="p">};</span>
<span class="nx">jsPlumb</span><span class="p">.</span><span class="nx">addEndpoint</span><span class="p">(</span> <span class="s2">&quot;window1&quot;</span><span class="p">,</span> <span class="nx">sourceEndpoint</span> <span class="p">);</span>
<span class="nx">jsPlumb</span><span class="p">.</span><span class="nx">makeTarget</span><span class="p">(</span> <span class="s2">&quot;window2&quot;</span><span class="p">,</span> <span class="nx">targetEndpoint</span> <span class="p">);</span>
</code></pre></div>
<p>Notice that the endpoint definition we use on the target window does not include the <code>isTarget:true</code> directive.  jsPlumb 
ignores that flag when creating a Connection using an element as the target; but if you then tried to drag another 
Connection to the Endpoint that was created, you would not be able to.  To permit that, you would set <code>isTarget:true</code> 
on the <code>targetEndpoint</code> options defined above.</p>

                </div>
            </div>
        </div>

        <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-49979015-1', 'auto');
    ga('send', 'pageview');

</script>


    </body>

</html>
